#ifndef LETTER_H_INCLUDED
#define LETTER_H_INCLUDED

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>

#define ASK(p) do{  \
    p=(ADDR*)malloc(sizeof(ADDR));  \
    if(p==NULL){printf("memory fail!");exit(-1);}\
}while(0)

#define LEN sizeof(ADDR)

extern int count;   //ⲿȫֱ

typedef struct address{
    char name[8];
    char tel[20];
    struct address *next;
}ADDR;

ADDR *input(ADDR *);
void display(ADDR *);
int menu_select(void);
void handle_menu(ADDR *);
ADDR *del(ADDR *);

#endif // LETTER_H_INCLUDED
